home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / demos / devel3.exe / USERINT.H < prev    next >
C/C++ Source or Header  |  1992-05-17  |  1KB  |  39 lines

  1. /* Header file for user-interface routines */
  2.  
  3. /* Written by Bernie Roehl, January 1992 (broehl@sunee.waterloo.edu) */
  4.  
  5. /* Copyright 1992 by Dave Stampe and Bernie Roehl.
  6.    May be freely used to write software for release into the public domain;
  7.    all commercial endeavours MUST contact Bernie Roehl and Dave Stampe
  8.    for permission to incorporate any part of this software into their
  9.    products!
  10.  */
  11.  
  12. typedef struct { 
  13.     int x, y, buttons;
  14.     int cenx, ceny;
  15.     int xrange, yrange;
  16.     long scale; /* maximum acceptable returned value for X and Y */
  17.     int port;  /* port number, 0 or 1; -1 means 'unused' */
  18.     } joystick_data;
  19.  
  20. extern int joystick_check();
  21. extern void joystick_init(joystick_data *joy, int port);
  22. extern int joystick_read(joystick_data *joystick);
  23. extern void joystick_quit();
  24. extern void joystick_setscale(joystick_data *joy, int value);
  25. extern void joystick_scale(joystick_data *joy, int dir);
  26. extern void neatbox(int w, int h, int *x, int *y);
  27. extern void poptext(char *text[]);
  28. extern void popmsg(char *msg);
  29. extern unsigned askfor(char *prompt, char *buff, int n);
  30.  
  31. extern int mouse_init();
  32. extern void mouse_deinit();
  33. extern int mouse_read(int *x, int *y, unsigned *buttons);
  34. extern int mouse_hide();
  35. extern void mouse_show(int page);
  36.  
  37. /* End of userint.h */
  38.  
  39.